def release_Pokémon(Pokémon, Pokémon_id):
    """
    release Pokémon by ID
    
    Args:
        Pokémon (list): Current list of Pokémon
        Pokémon_id (str): ID of Pokémon to release
        
    Returns:
        list: Updated list without release Pokémon
    """
    updated_Pokémon = [Pokémon for Pokémon in Pokémon if Pokémon["id"] != Pokémon_id]
    if len(updated_Pokémon) < len(Pokémon):
        release_Pokémon = next(Pokémon for Pokémon in Pokémon if Pokémon["id"] == Pokémon_id)
        print(f"✅ {release_Pokémon['name']} released successfully!")
        return updated_Pokémon
    else:
        print("❌ Pokémon not found with that ID!")
        return Pokémon
    
def display_Pokémon(Pokémon):
    """Display all Pokémon in a user-friendly format"""
    print("\n=== MY GAME CHARACTERS ===")
    print(f"Pokémon: {len(Pokémon)}/4\n")
    
    if not Pokémon:
        print("No Pokémon in your collection yet.")
        return 
    
    for index, Pokémon in enumerate(Pokémon, 1):
        print(f"{index}. ID: {Pokémon['id']}")
        print(f"   Name: {Pokémon['name']}")
        print(f"   Type: {Pokémon['type']}")
        print(f"   Level: {Pokémon['level']}\n")
    return None
# Test
if __name__ == "__main__":
    print("Testing delete_item...")
    test_Pokémon = [
        {"id": "abc123", "name": "Warrior", "type": "Fighter", "level": 10},
        {"id": "def456", "name": "Mage", "type": "Wizard", "level": 8}
    ]

    display_Pokémon(test_Pokémon)
    test_Pokémon = release_Pokémon(test_Pokémon, "abc123")
    display_Pokémon(test_Pokémon)
